home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / carddemo.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  192 b   |  8 lines

  1. program CardDemo;
  2. var
  3.   Foo: set of 1 .. 100;
  4. begin
  5.   Foo := [1, 2, 3, 5, 1, 1, 1, 2, 2, 2, 3, 3, 5, 5];  { four elements }
  6.   WriteLn ('foo consists of ', Card (Foo), ' elements')
  7. end.
  8.